home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / pine / imap_archive / text0032.txt < prev    next >
Encoding:
Text File  |  1993-07-02  |  2.3 KB  |  71 lines

  1. Hi Mark,
  2.  
  3.      There are a few little problems in the version of IMAP-2.3
  4. that I grabbed from cac.washington.edu today at around 14:40.  First (in
  5. pseudo-diff format), there's an incorrect declaration that will cause
  6. Sun compilers to choke:
  7.  
  8. ---news.c:line 516---
  9. -> int news_numsort (struct direct **d1,struct direct **d2)
  10.            struct direct **d1;
  11.            struct direct **d2;
  12.    {
  13.      return (atoi ((*d1)->d_name) - atoi ((*d2)->d_name));
  14.    } 
  15. ---------------------
  16. ->  int news_numsort (d1,d2)
  17.            struct direct **d1;
  18.            struct direct **d2;
  19.    {
  20.      return (atoi ((*d1)->d_name) - atoi ((*d2)->d_name));
  21.    }
  22. ---------------------
  23.  
  24.     Secondly, in nntpclient.c, I think you wanted a different
  25. function than you said, but I can only guess.  At any rate, the
  26. Sun libraries don't have a strcpyn and it looks like you want
  27. strncpy.
  28.  
  29. ---nntpclient.c:line 627---
  30.       fs_resize ((void **) &LOCAL->buf,LOCAL->buflen += (MAXMESSAGESIZE + 1));
  31.                                 /* copy the text */
  32. ->  strcpyn (LOCAL->buf + bufpos,t,i);
  33.     bufpos += i;                /* set new buffer position */
  34.     LOCAL->buf[bufpos++] = '\015';
  35.     LOCAL->buf[bufpos++] = '\012';
  36. ---------------------------
  37.       fs_resize ((void **) &LOCAL->buf,LOCAL->buflen += (MAXMESSAGESIZE + 1));
  38.                                 /* copy the text */
  39. ->  strncpy (LOCAL->buf + bufpos,t,i);
  40.     bufpos += i;                /* set new buffer position */
  41.     LOCAL->buf[bufpos++] = '\015';
  42.     LOCAL->buf[bufpos++] = '\012';
  43. ---------------------------
  44.  
  45.     And...
  46.  
  47. ---nntpclient.c:line 1027---
  48.             h[4] == ':' && h[5] == ' ') || (s1 = strstr (h,"\nPath: "))) &&
  49.           (s = strchr (s1 += 6,'\n'))) {
  50. ->      strcpyn (tmp+5,s1,i = s - s1);
  51.         tmp[5 + i] = ' ';
  52.         s = tmp + 6 + i;        /* where to write date */
  53. ----------------------------
  54.             h[4] == ':' && h[5] == ' ') || (s1 = strstr (h,"\nPath: "))) &&
  55.           (s = strchr (s1 += 6,'\n'))) {
  56. ->      strncpy (tmp+5,s1,i = s - s1);
  57.         tmp[5 + i] = ' ';
  58.         s = tmp + 6 + i;        /* where to write date */
  59. ----------------------------
  60.  
  61.     Thanks for all the work you've done on IMAP and hopefully I'll
  62. get to meet you in the early part of March when I'm up visiting :-).
  63.  
  64.  
  65.  
  66.                  Cory West,
  67.                  corywest@rice.edu
  68.  
  69.  
  70.  
  71.